package com.adcc.loadsheet.monitor.vo;

import com.adcc.loadsheet.monitor.entity.*;

public class MonitorServerVO {

    // BGS监控信息
    private BGSMonitorVO bgs;

    // Database监控信息
    private DatabaseMonitorVO database;

    // MQ监控信息
    private MQMonitorVO mq;

    // AppUpload监控信息
    private AppUploadMonitorVO appUpload;

    // 航信接口监控信息
    private AirInfoMonitorVO airInfo;

    // MsgUpCenter监控信息
    private MsgUpCenterMonitorVO msgUpCenter;

    // Website监控信息
    private WebsiteMonitorVO website;

    // 舱单抓取程序监控信息
    private ForwarderMonitorVO forwarder;

    public MonitorServerVO() {

    }

    public MonitorServerVO(MonitorServer monitorServer) {
        bgs = new BGSMonitorVO(monitorServer.getBgs() != null ? monitorServer.getBgs() : new BGSMonitor());
        database = new DatabaseMonitorVO(monitorServer.getDatabase() != null ? monitorServer.getDatabase() : new DatabaseMonitor());
        mq = new MQMonitorVO(monitorServer.getMq() != null ? monitorServer.getMq() : new MQMonitor());
        appUpload = new AppUploadMonitorVO(monitorServer.getAppUpload() != null ? monitorServer.getAppUpload() : new AppUploadMonitor());
        airInfo = new AirInfoMonitorVO(monitorServer.getAirInfo() != null ? monitorServer.getAirInfo() : new AirInfoMonitor());
        msgUpCenter = new MsgUpCenterMonitorVO(monitorServer.getMsgUpCenter() != null ? monitorServer.getMsgUpCenter() : new MsgUpCenterMonitor());
        website = new WebsiteMonitorVO(monitorServer.getWebsite() != null ? monitorServer.getWebsite() : new WebsiteMonitor());
        forwarder = new ForwarderMonitorVO(monitorServer.getForwarder() != null ? monitorServer.getForwarder() : new ForwarderMonitor());
    }

    public BGSMonitorVO getBgs() {
        return bgs;
    }

    public void setBgs(BGSMonitorVO bgs) {
        this.bgs = bgs;
    }

    public DatabaseMonitorVO getDatabase() {
        return database;
    }

    public void setDatabase(DatabaseMonitorVO database) {
        this.database = database;
    }

    public MQMonitorVO getMq() {
        return mq;
    }

    public void setMq(MQMonitorVO mq) {
        this.mq = mq;
    }

    public AppUploadMonitorVO getAppUpload() {
        return appUpload;
    }

    public void setAppUpload(AppUploadMonitorVO appUpload) {
        this.appUpload = appUpload;
    }

    public AirInfoMonitorVO getAirInfo() {
        return airInfo;
    }

    public void setAirInfo(AirInfoMonitorVO airInfo) {
        this.airInfo = airInfo;
    }

    public MsgUpCenterMonitorVO getMsgUpCenter() {
        return msgUpCenter;
    }

    public void setMsgUpCenter(MsgUpCenterMonitorVO msgUpCenter) {
        this.msgUpCenter = msgUpCenter;
    }

    public WebsiteMonitorVO getWebsite() {
        return website;
    }

    public void setWebsite(WebsiteMonitorVO website) {
        this.website = website;
    }

    public ForwarderMonitorVO getForwarder() {
        return forwarder;
    }

    public void setForwarder(ForwarderMonitorVO forwarder) {
        this.forwarder = forwarder;
    }
}
